<?php
require 'Home/Controller/Controller.php ';
require 'Home/Model/IndexModel.php';
class SearchController extends Controller{
	function __Construct(){
		parent::__Construct();
		$this->model = new IndexModel();
	}
	function index(){	
	
	$key=$_POST['key'];
	$result = $this->model->search($key);
	$getCartoonType = $this->model->getCartoonType();
	//var_dump($result);
	//exit;
	include 'Home/View/Index/search.php';
		
	}
	
}
?>